Most of the time the database queries error out with
Querying archive (all items)…
Querying archive…
Query failed: You are not connected to a database
Found 0 item(s).
This is probably because of the threading. That is, UploadWorker, QueryWorker, and DownloadWorker are QThread subclasses.
Threading is in theory possible, but you should do it correctly, and I forgot how to exactly do that.
I think you need to do this in every new thread:
from common.config.Profile import profiles
profiles.create_profile()
from common.database.Database import database
database.connect()
Most of the time the database queries error out with
This is probably because of the threading. That is,
UploadWorker,QueryWorker, andDownloadWorkerareQThreadsubclasses.Threading is in theory possible, but you should do it correctly, and I forgot how to exactly do that.
I think you need to do this in every new thread: