diff --git a/cache.py b/cache.py index 3a313e45..e7d0c841 100644 --- a/cache.py +++ b/cache.py @@ -867,6 +867,15 @@ def delta(self): """, buys) insertedBuys = buyCounter.delta + tdenv.DEBUG0("Marking populated stations as having a market") + db.execute( + "UPDATE Station SET market = 'Y'" + " WHERE EXISTS" + " (SELECT station_id FROM StationItem" + " WHERE StationItem.station_id = Station.station_id" + ")" + ) + db.commit() changes = " and ".join("{} {}".format(v, k) for k, v in {