cloud-py-api / mediadc

Nextcloud Media Duplicate Collector application
https://apps.nextcloud.com/apps/mediadc
GNU Affero General Public License v3.0
95 stars 8 forks source link

Group number in results #38

Closed ykutovoy closed 2 years ago

ykutovoy commented 2 years ago

first run image

next run

image

I'm not sure, if it is a bug, but If You restart task, resulting groups numbers not starting from beginning, but increments from previous task start.

andrey18106 commented 2 years ago

@ykutovoy No, it's not a bug, that's because for each task run old details are deleted and therefore for the new details we have new ids.

ykutovoy commented 2 years ago

I think it is not a problem, but if we deleting old details, why not we deleting the numbers of that details? Just starting from 1 on each restart?

andrey18106 commented 2 years ago

@ykutovoy That's because of database structure. It's a unique id that auto increments every time.

ykutovoy commented 2 years ago

Ok thank You for explanation. I understand that it lead to much work for You, but may be it is possible convert that unique numbers to correct group numbers in particular task? something like...

1548 -> #1

1549 -> #2

and so on according to actual number of groups

It would be a bit user-friendly :)

andrey18106 commented 2 years ago

Yea, ok, I'll think about it) Good suggestion. Thank you

andrey18106 commented 2 years ago

Added in MediaDC 0.1.10. Closing.