Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -350,12 +350,14 @@ def getlinkscreated(jsdata):
|
|
| 350 |
spreadsheet_service,drive_service,gc= pilecaps_adr.authorizeLegend()
|
| 351 |
ids=gc.spreadsheet_ids()
|
| 352 |
titles=gc.spreadsheet_titles()
|
|
|
|
| 353 |
allpaths=[]
|
| 354 |
# for title in titles:
|
| 355 |
for i in range(len(titles)):
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
|
|
|
| 359 |
return jsonify(allpaths)
|
| 360 |
|
| 361 |
#_________________________________________________________________________________________________________________________
|
|
|
|
| 350 |
spreadsheet_service,drive_service,gc= pilecaps_adr.authorizeLegend()
|
| 351 |
ids=gc.spreadsheet_ids()
|
| 352 |
titles=gc.spreadsheet_titles()
|
| 353 |
+
|
| 354 |
allpaths=[]
|
| 355 |
# for title in titles:
|
| 356 |
for i in range(len(titles)):
|
| 357 |
+
if not titles[i].startswith('API'):
|
| 358 |
+
ws=gc.open(titles[i])
|
| 359 |
+
allpaths.append([titles[i], ws.get_developer_metadata('path')[0].value , drive_service.files().get(fileId=ids[i],fields="createdTime, modifiedTime").execute() ,ids[i] ])
|
| 360 |
+
|
| 361 |
return jsonify(allpaths)
|
| 362 |
|
| 363 |
#_________________________________________________________________________________________________________________________
|