Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,7 +80,8 @@ def convert_dicts_to_list(dicts: List[Dict], headers: List[str], add_link: bool
|
|
| 80 |
image_id: str = '', link_text: str = '',
|
| 81 |
link_position: int = -1) -> List[List[str]]:
|
| 82 |
rows = []
|
| 83 |
-
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
|
|
|
| 84 |
|
| 85 |
for dict_item in dicts:
|
| 86 |
# row = list(dict_item.values())
|
|
@@ -212,7 +213,7 @@ async def update_user_sheet(spreadsheet_id:str, sheet_id:int, sheet_name, data:
|
|
| 212 |
no_of_cols = len(data[0])
|
| 213 |
|
| 214 |
if is_reset:
|
| 215 |
-
sheet_name = f"{sheet_name} {datetime.now().strftime(
|
| 216 |
duplicate_requests = [{
|
| 217 |
"duplicateSheet": {
|
| 218 |
"sourceSheetId": contacts_ss,
|
|
@@ -534,7 +535,8 @@ async def update_user_sheets_and_folders(user_data, transaction_ref, transaction
|
|
| 534 |
found_business_cards_no = len(data['busi_cards']) if 'busi_cards' in data else 0
|
| 535 |
new_folder = None
|
| 536 |
secondary_folder = None
|
| 537 |
-
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
|
|
|
| 538 |
# https://drive.google.com/file/d/1cFIA09PBqFjM8YvIz1D60p7HMGk1uBvo/view?usp=sharing
|
| 539 |
download_image_url = f"https://drive.google.com/uc?id={image_id}&export=download"
|
| 540 |
image_url = f"https://drive.google.com/file/d/{image_id}/view?usp=sharing"
|
|
|
|
| 80 |
image_id: str = '', link_text: str = '',
|
| 81 |
link_position: int = -1) -> List[List[str]]:
|
| 82 |
rows = []
|
| 83 |
+
# timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 84 |
+
timestamp = datetime.now(kst).strftime("%Y-%m-%d %H:%M:%S")
|
| 85 |
|
| 86 |
for dict_item in dicts:
|
| 87 |
# row = list(dict_item.values())
|
|
|
|
| 213 |
no_of_cols = len(data[0])
|
| 214 |
|
| 215 |
if is_reset:
|
| 216 |
+
sheet_name = f"{sheet_name} {datetime.now(kst).strftime("%Y-%m-%d %H:%M:%S")}"
|
| 217 |
duplicate_requests = [{
|
| 218 |
"duplicateSheet": {
|
| 219 |
"sourceSheetId": contacts_ss,
|
|
|
|
| 535 |
found_business_cards_no = len(data['busi_cards']) if 'busi_cards' in data else 0
|
| 536 |
new_folder = None
|
| 537 |
secondary_folder = None
|
| 538 |
+
# timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 539 |
+
timestamp = datetime.now(kst).strftime("%Y-%m-%d %H:%M:%S")
|
| 540 |
# https://drive.google.com/file/d/1cFIA09PBqFjM8YvIz1D60p7HMGk1uBvo/view?usp=sharing
|
| 541 |
download_image_url = f"https://drive.google.com/uc?id={image_id}&export=download"
|
| 542 |
image_url = f"https://drive.google.com/file/d/{image_id}/view?usp=sharing"
|