removed json

This commit is contained in:
tianyi 2024-04-30 01:54:47 +00:00
parent 947b1078f6
commit 6239b8e3e5
1 changed files with 1 additions and 2 deletions

View File

@ -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: