mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 18:07:02 +00:00
sonar fixes
This commit is contained in:
@ -39,6 +39,7 @@ def upload_image_to_alibaba(image, filename):
|
||||
return f"https://{settings.ALIYUN_OSS_BUCKET_NAME}.{settings.ALIYUN_OSS_ENDPOINT}/{new_filename}"
|
||||
|
||||
def real_time():
|
||||
""" real time """
|
||||
# Fetch real time.
|
||||
# time is not depend on system time
|
||||
# Get the current datetime
|
||||
@ -49,6 +50,7 @@ def real_time():
|
||||
return current_datetime
|
||||
|
||||
def convert_timedelta_into_datetime(time_difference):
|
||||
"""convert date time"""
|
||||
# convert timedelta into datetime format
|
||||
hours = time_difference.seconds // NUMBER['thirty_six_hundred']
|
||||
minutes = (time_difference.seconds // NUMBER['sixty']) % NUMBER['sixty']
|
||||
|
Reference in New Issue
Block a user