Skip to content

Commit c226101

Browse files
committed
add lgs
1 parent 49b88fb commit c226101

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

node-ui/mega-alerts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,9 @@ class MegaData {
799799
lastMod &&
800800
this.upload_timers[connectedRealmId]?.lastUploadTimeRaw === lastMod
801801
) {
802+
log(
803+
`Skip realm ${connectedRealmId} (${this.REGION}): data has not updated yet (Last-Modified unchanged: ${lastMod})`
804+
)
802805
return { auctions: [] }
803806
}
804807
if (lastMod) {
@@ -887,6 +890,9 @@ class MegaData {
887890
lastMod &&
888891
this.upload_timers[connectedId]?.lastUploadTimeRaw === lastMod
889892
) {
893+
log(
894+
`Skip ${this.REGION} commodities: data has not updated yet (Last-Modified unchanged: ${lastMod})`
895+
)
890896
return { auctions: [] }
891897
}
892898
if (lastMod) this.update_local_timers(connectedId, lastMod)

utils/mega_data_setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,9 @@ def make_ah_api_request(self, url, connectedRealmId):
677677
lastUploadTimeRaw = dict(req.headers)["Last-Modified"]
678678
# If unchanged, data has not updated yet; skip processing
679679
if self.upload_timers.get(connectedRealmId, {}).get("lastUploadTimeRaw") == lastUploadTimeRaw:
680+
print(
681+
f"Skip realm {connectedRealmId} ({self.REGION}): data has not updated yet (Last-Modified unchanged: {lastUploadTimeRaw})"
682+
)
680683
return {"auctions": []}
681684
self.update_local_timers(connectedRealmId, lastUploadTimeRaw)
682685
except Exception as ex:
@@ -747,6 +750,9 @@ def make_commodity_ah_api_request(self):
747750
lastUploadTimeRaw = dict(req.headers)["Last-Modified"]
748751
# If unchanged, data has not updated yet; skip processing
749752
if self.upload_timers.get(connectedRealmId, {}).get("lastUploadTimeRaw") == lastUploadTimeRaw:
753+
print(
754+
f"Skip {self.REGION} commodities: data has not updated yet (Last-Modified unchanged: {lastUploadTimeRaw})"
755+
)
750756
return {"auctions": []}
751757
self.update_local_timers(connectedRealmId, lastUploadTimeRaw)
752758
except Exception as ex:

0 commit comments

Comments
 (0)