Skip to content

Commit

Permalink
Fixes new year calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Jan 10, 2019
1 parent 59c01ef commit 6b6f524
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions vendor/bat-native-ledger/src/bat_get_media.cc
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ void BatGetMedia::fetchPublisherDataFromDB(uint64_t windowId,
auto filter = ledger_->CreatePublisherFilter(
publisher_key,
ledger::PUBLISHER_CATEGORY::AUTO_CONTRIBUTE,
visit_data.local_month,
visit_data.local_year,
ledger::PUBLISHER_MONTH::ANY,
-1,
ledger::PUBLISHER_EXCLUDE_FILTER::FILTER_ALL,
false,
ledger_->GetReconcileStamp(),
Expand Down
12 changes: 6 additions & 6 deletions vendor/bat-native-ledger/src/bat_publishers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ void BatPublishers::saveVisit(const std::string& publisher_id,

auto filter = CreatePublisherFilter(publisher_id,
ledger::PUBLISHER_CATEGORY::AUTO_CONTRIBUTE,
visit_data.local_month,
visit_data.local_year,
ledger::PUBLISHER_MONTH::ANY,
-1,
ledger::PUBLISHER_EXCLUDE_FILTER::FILTER_ALL,
false,
ledger_->GetReconcileStamp(),
Expand Down Expand Up @@ -608,8 +608,8 @@ void BatPublishers::synopsisNormalizerInternal(
void BatPublishers::synopsisNormalizer(const ledger::PublisherInfo& info) {
auto filter = CreatePublisherFilter("",
ledger::PUBLISHER_CATEGORY::AUTO_CONTRIBUTE,
info.month,
info.year,
ledger::PUBLISHER_MONTH::ANY,
-1,
ledger::PUBLISHER_EXCLUDE_FILTER::FILTER_ALL_EXCEPT_EXCLUDED,
true,
ledger_->GetReconcileStamp(),
Expand Down Expand Up @@ -837,8 +837,8 @@ void BatPublishers::getPublisherActivityFromUrl(uint64_t windowId, const ledger:

auto filter = CreatePublisherFilter(visit_data.domain,
ledger::PUBLISHER_CATEGORY::AUTO_CONTRIBUTE,
visit_data.local_month,
visit_data.local_year,
ledger::PUBLISHER_MONTH::ANY,
-1,
ledger::PUBLISHER_EXCLUDE_FILTER::FILTER_ALL,
false,
ledger_->GetReconcileStamp(),
Expand Down

0 comments on commit 6b6f524

Please sign in to comment.