Work on temporary hosted files

This commit is contained in:
Scott Idem
2021-11-23 17:17:40 -05:00
parent 24c7411109
commit 523a7378c6
3 changed files with 13 additions and 9 deletions

View File

@@ -95,10 +95,10 @@ async def get_obj_id_order_line_list(
if create_export:
datetime_format='%Y-%m-%d_%H%M'
current_datetime = datetime.datetime.now()
# current_datetime_string = current_datetime.isoformat()
current_datetime_string = current_datetime.strftime(datetime_format)
filename = f'order_line_list_{current_datetime_string}'
# current_datetime = datetime.datetime.now() # Servers timezone (Eastern)
current_datetime_utc = datetime.datetime.utcnow()
current_datetime_utc = current_datetime_utc.strftime(datetime_format)
filename = f'order_line_list_{current_datetime_utc}'
create_export_file(data_dict_list=data_dict_list_for_export, subdir_path='order_line', filename=filename, export_type='Excel')
# print(response_data)