DmitrMakeev
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ import time
|
|
7 |
import re
|
8 |
import json
|
9 |
import base64
|
10 |
-
|
11 |
-
|
12 |
|
13 |
from unidecode import unidecode
|
14 |
|
@@ -104,7 +104,7 @@ for db in DATABASES:
|
|
104 |
|
105 |
async def display_date():
|
106 |
loop = asyncio.get_running_loop()
|
107 |
-
end_time = loop.time() +
|
108 |
while True:
|
109 |
print(datetime.datetime.now())
|
110 |
if (loop.time() + 1.0) >= end_time:
|
|
|
7 |
import re
|
8 |
import json
|
9 |
import base64
|
10 |
+
import asyncio
|
11 |
+
import datetime
|
12 |
|
13 |
from unidecode import unidecode
|
14 |
|
|
|
104 |
|
105 |
async def display_date():
|
106 |
loop = asyncio.get_running_loop()
|
107 |
+
end_time = loop.time() + 50.0
|
108 |
while True:
|
109 |
print(datetime.datetime.now())
|
110 |
if (loop.time() + 1.0) >= end_time:
|