File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 14
14
import warnings
15
15
from concurrent .futures import FIRST_COMPLETED , ThreadPoolExecutor , wait
16
16
from copy import copy
17
- from datetime import datetime
18
17
from functools import cache
19
18
from importlib .metadata import PackageNotFoundError , version
20
19
from json import JSONDecodeError
@@ -223,18 +222,12 @@ def _get_database_version(endpoint):
223
222
remains unchanged and available for querying via its task_id.
224
223
225
224
The database version is set as a date in the format YYYY_MM_DD,
226
- where "_DD" may be optional. An additional numerical suffix
225
+ where "_DD" may be optional. An additional numerical or `postN` suffix
227
226
might be added if multiple releases happen on the same day.
228
227
229
228
Returns: database version as a string
230
229
"""
231
- date_str = requests .get (url = endpoint + "heartbeat" ).json ()["db_version" ]
232
- # Convert the string to a datetime object
233
- date_obj = datetime .strptime (date_str , "%Y.%m.%d" )
234
-
235
- # Format the datetime object as a string
236
- formatted_date = date_obj .strftime ("%Y.%m.%d" )
237
- return formatted_date
230
+ return requests .get (url = endpoint + "heartbeat" ).json ()["db_version" ]
238
231
239
232
def _post_resource (
240
233
self ,
You can’t perform that action at this time.
0 commit comments