implemented the rest of the async functions and changed the way multithreading works

This commit is contained in:
Kikimanox
2022-09-19 17:11:59 +02:00
parent 9e82f3b93a
commit 916b2bef2a
7 changed files with 174 additions and 47 deletions
+10
View File
@@ -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}'