Statistiken Fehler behoben
This commit is contained in:
parent
cd5204fa12
commit
befd6db199
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import math
|
import math
|
||||||
|
import time
|
||||||
|
|
||||||
class Media:
|
class Media:
|
||||||
_id_counter = 0
|
_id_counter = 0
|
||||||
|
|
@ -96,8 +97,9 @@ class Media:
|
||||||
}
|
}
|
||||||
|
|
||||||
def to_dict_stat(self):
|
def to_dict_stat(self):
|
||||||
return {self.id: {
|
return {time.time(): {
|
||||||
# source
|
# source
|
||||||
|
"id": self.id,
|
||||||
"source_file_name": self.source_file_name,
|
"source_file_name": self.source_file_name,
|
||||||
"source_file": self.source_file,
|
"source_file": self.source_file,
|
||||||
"source_duration": self.source_duration,
|
"source_duration": self.source_duration,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue