removed json
This commit is contained in:
parent
947b1078f6
commit
6239b8e3e5
|
@ -1,9 +1,8 @@
|
||||||
# Description: This script is used to update the list of pictures in the Azure Blob Storage container.
|
# Description: This script is used to update the list of pictures in the Azure Blob Storage container.
|
||||||
from azure.storage.blob import BlobServiceClient
|
from azure.storage.blob import BlobServiceClient
|
||||||
import os
|
import os
|
||||||
import json
|
|
||||||
from .models import Picture
|
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())
|
# print(os.getcwd())
|
||||||
try:
|
try:
|
||||||
with open(secretdir, 'r') as f:
|
with open(secretdir, 'r') as f:
|
||||||
|
|
Loading…
Reference in New Issue