You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: incl/src/Avalanche.cpp
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,12 @@ using namespace matjson;
21
21
namespaceavalanche {
22
22
Mod* AVAL_MOD = getMod(); // Get the mod instance
23
23
24
+
Value fetchedBadges = Value();
25
+
Value fetchedLevels = Value();
26
+
24
27
int ACC_PUBLISHER = 31079132;
25
28
std::string URL_MOD_ISSUES = AVAL_MOD->getMetadataRef().getIssues().value().url.value_or(URL_AVALANCHE); // URL to the mod's issues page on its GitHub repository
26
29
27
-
Value fetchedBadges = Value(); // Cached profile data
28
-
Value fetchedLevels = Value(); // Cached project data
29
-
30
30
EventListener<web::WebTask> badgeListReq; // Web request listener for team profile data
31
31
EventListener<web::WebTask> levelListReq; // Web request listener for team project data
32
32
@@ -173,7 +173,7 @@ namespace avalanche {
173
173
for (auto& [key, value] : jsonRes) {
174
174
auto cacheKey = fmt::format("cache-level-p{}", (std::string)key);
175
175
176
-
if (AVAL_MOD->getSettingValue<bool>("web-once")) fetchedBadges.set(key, value);
176
+
if (AVAL_MOD->getSettingValue<bool>("web-once")) fetchedLevels.set(key, value);
177
177
AVAL_MOD->setSavedValue(cacheKey, value);
178
178
};
179
179
};
@@ -211,7 +211,7 @@ namespace avalanche {
211
211
log::warn("Session web cache for badge data is unaccessible");
0 commit comments