Map-A-Droid / MAD

Map PoGo stuff with Android devices
211 stars 133 forks source link

trs_visited not cleaned #748

Open bigperson5 opened 4 years ago

bigperson5 commented 4 years ago

Using levelup mode, when an account hits lvl30 MAD is instructed to change account. However trs_visited table is not cleaned.

As a consequence, when the new account is charged, there are "Nothing to do!" messages in the log, and the new account don't levelup.

I thing that a possible solution could be add this code in line 374 of WorkerQuests.py self._db_wrapper.flush_levelinfo(self._origin)

ChaosEmpire commented 4 years ago

wouldnt it be better to save per account instead of per device ?

sn0opy commented 4 years ago

wouldnt it be better to save per account instead of per device ?

It is and we would've done already, if it's not much more complicated than storing the device name. It has been discussed on Discord a few months ago already I think.

bigperson5 commented 4 years ago

wouldnt it be better to save per account instead of per device ?

Honestly I don't see the benefit of saving per account. Once the account reaches level 30, the information related to visited stops is no longer useful, and will take place in the database.

Why do you think that to store this information can be useful?