Skip to content

Commit

Permalink
DB azure test
Browse files Browse the repository at this point in the history
  • Loading branch information
nnayk committed Dec 8, 2023
1 parent a249acf commit 8777b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ def store_image():
image_res = requests.post(
"https://api.imgur.com/3/image",
data={"image": data["url"]},
headers={"Authorization": "Client-ID "
+ os.environ["IMGUR_CLIENT_ID"]},
headers={"Authorization": "Client-ID " + os.environ["IMGUR_CLIENT_ID"]},
)

# Prepare the data for creating an image
Expand Down Expand Up @@ -331,6 +330,7 @@ def verify_user():


if __name__ == "__main__":
print("Starting server...")
db_access.db_connect()
try:
app.run(port=5000, debug=True)
Expand Down

0 comments on commit 8777b38

Please sign in to comment.