James01010101 / Comic_Tracker

IOS Swift app for tracking my comics
0 stars 0 forks source link

Create a cleanup id's button to refresh ids so there isnt gaps #40

Closed James01010101 closed 1 month ago

James01010101 commented 2 months ago

Since deleting comics can leave gaps in their ids. Which is intented because if i delete a comic which isnt the most recent i still want tht next comic to be given an new unique id

but after a while this would get miss aligned with gaps. i want a button to reset all ids of comics series and events

itll go through all comics in order of their current id's but start at 1 and go up and there isnt any more gaps. same thing for events and series.

also reset the static id counters

James01010101 commented 2 months ago

If implemented also look at the series recent comic id, it is used by the series to sort based on the most recent comic added to it. ill have to update this with the new comics ids

James01010101 commented 1 month ago

Every time the app is loaded it recalculates the ids for comics and re goes through all series to calculate them (cant remember it if does all series or i just did that one time) but it does recalc all ids for comics so if i delete some and close and reopen they will be together