Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python database Axidrawer
#1
Dear Python forum,

I am seeking help with a problem I have been struggling with for days. I have created a small website with the help of a teacher, where you can upload an image, convert it to various SVGs with some parameters, and store them in Firebase. Then, the colors are separated and printed by an Axidrawer. The system works, but once I have printed the layers of the SVGs with the Axidrawer, I want the SVG in Firebase to be marked as 'printed'. This way, the system won't attempt to print the same image again.

I have never worked with Python before, so I am struggling to figure this out!

Could you please help me?

Here is the GitHub URL so you can review the files:

https://github.com/bobharterink/image_bob_harterink

Sorry if this is a silly question.
Reply
#2
I don't know what Firebase or Axidrawer are.

I think, if I wanted to do something like this, I would put a column printed in the database.

Start the column printed with the value 0 in all rows

After you print whatever it is you print, update the database column printed to 1.

Then select 1 particular row, or all rows with the condition printed = 0

Quote:SELECT * FROM recipes WHERE printed = 0

Then print the result set and update the column printed to 1
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020