Python Forum
how do i save my all my edits performed in adminpanel with one button
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do i save my all my edits performed in adminpanel with one button
#5
(Apr-28-2017, 09:27 PM)nilamo Wrote: I'm confused then.  The issue is that changes aren't getting saved back to the original json file.  But you're purposefully not saving changes back to that file.
...so what's the problem?

just replace that code with this once and try running the file again u'll notice what i am exactly trying to tell

with open('database.json', 'w') as f:
        json.dump(new_list, f, indent=2)
Reply


Messages In This Thread
RE: how do i save my all my edits performed in adminpanel with one button - by Rashi - Apr-28-2017, 09:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] [split] I want to add a code to the "Save" button to save the data entered LOO 1 2,011 Jan-23-2023, 05:31 PM
Last Post: deanhystad
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 5,066 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp
  Save image from Clipboard Linux / save Pixbuf format M_Schneider 1 2,871 May-04-2018, 04:38 PM
Last Post: woooee

Forum Jump:

User Panel Messages

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