diff --git a/backend/randpic/update_pics.py b/backend/randpic/update_pics.py index cb2e7c9..418eebf 100644 --- a/backend/randpic/update_pics.py +++ b/backend/randpic/update_pics.py @@ -1,9 +1,8 @@ # Description: This script is used to update the list of pictures in the Azure Blob Storage container. from azure.storage.blob import BlobServiceClient import os -import json from .models import Picture -def update_pictures(container='tianyi-random', remotedir='', secretdir='/home/tianyi/repos/TianyiMoe/backend/secret.txt', jsondir='/home/tianyi/repos/TianyiMoe/backend/jsons/pics.json'): +def update_pictures(container='tianyi-random', remotedir='', secretdir='/home/tianyi/repos/TianyiMoe/backend/secret.txt'): # print(os.getcwd()) try: with open(secretdir, 'r') as f: