Skip to content

Commit

Permalink
Giveaway Extractor: fix bug that extracts all giveaways when option t…
Browse files Browse the repository at this point in the history
…o extract onward is enabled (close #1610)
  • Loading branch information
rafaelgomesxyz committed Sep 3, 2020
1 parent c7f9e56 commit 94d6fb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "esgst",
"version": "8.7.4",
"betaVersion": "8.7.5-beta.3",
"betaVersion": "8.7.5-beta.4",
"title": "Enhanced SteamGifts & SteamTrades (ESGST)",
"description": "A script that adds some cool features to SteamGifts and SteamTrades.",
"author": "rafaelgssa",
Expand Down
10 changes: 5 additions & 5 deletions src/modules/Giveaways/GiveawayExtractor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,6 @@ class GiveawaysGiveawayExtractor extends Module {
})
).responseText
),
extractOnward: !!parameters.extractOnward,
flushCache: !!parameters.flush,
flushCacheHours: parameters.flushHrs,
ignoreDiscussionComments: !!parameters.noDiscCmt,
ignoreGiveawayComments: !!parameters.noGaCmt,
};

Shared.esgst.customPages.ge = {
Expand Down Expand Up @@ -365,6 +360,11 @@ class GiveawaysGiveawayExtractor extends Module {
null,
Settings.get('ge_ignoreGiveawayComments')
);
ge.extractOnward = Settings.get('ge_extractOnward');
ge.flushCache = Settings.get('ge_flushCache');
ge.flushCacheHours = Settings.get('ge_flushCacheHours');
ge.ignoreDiscussionComments = Settings.get('ge_ignoreDiscussionComments');
ge.ignoreGiveawayComments = Settings.get('ge_ignoreGiveawayComments');
ge.cacheWarning = null;
const onExtractClick = () => {
return new Promise((resolve) => {
Expand Down

0 comments on commit 94d6fb9

Please sign in to comment.