mvlnetdev / photoprism_client

A Python client to interact with photoprism.
MIT License
18 stars 12 forks source link

Cleaned up if/else logic to make code more readable #1

Closed DCSBL closed 1 year ago

DCSBL commented 1 year ago

Hi! I've made a few suggestions that might help. I think this improves the quality of the code a tiny bit.

Also, it seems that requests.get does not have a data= parameter (https://www.w3schools.com/python/ref_requests_get.asp) but I maybe have another version 🤷.

Changes are not tested (no Photoprism account and used web-editor), so make sure to verify your implementation ;)