From 6239b8e3e5b03ad01fec410800c1a157bf314585 Mon Sep 17 00:00:00 2001 From: tianyi Date: Tue, 30 Apr 2024 01:54:47 +0000 Subject: [PATCH] removed json --- backend/randpic/update_pics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: