mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 21:44:16 +02:00
[arch][snap] improvement -> caching categories file for 24 hours
This commit is contained in:
@@ -30,3 +30,8 @@ def size_to_byte(size: float, unit: str) -> int:
|
||||
|
||||
def datetime_as_milis(date: datetime = datetime.utcnow()) -> int:
|
||||
return int(round(date.timestamp() * 1000))
|
||||
|
||||
|
||||
def map_timestamp_file(file_path: str) -> str:
|
||||
path_split = file_path.split('/')
|
||||
return '/'.join(path_split[0:-1]) + '/' + path_split[-1].split('.')[0] + '.ts'
|
||||
|
||||
Reference in New Issue
Block a user