implemented the rest of the async functions and changed the way multithreading works
This commit is contained in:
@@ -5,6 +5,9 @@ import six
|
||||
import typing
|
||||
from swagger_server import type_util
|
||||
import pandas as pd
|
||||
from datetime import datetime
|
||||
import string
|
||||
import random
|
||||
|
||||
|
||||
def _deserialize(data, klass):
|
||||
@@ -186,3 +189,10 @@ def get_files_by_keywords(kljucnebesede):
|
||||
if amount >= 1:
|
||||
ret.append(_file[9:][:-12])
|
||||
return ret
|
||||
|
||||
|
||||
def get_random_filename():
|
||||
ts = str(int(datetime.now().timestamp()))
|
||||
extra = ''.join(random.choices(string.ascii_letters + string.digits, k=8))
|
||||
return f'{ts}_{extra}'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user