Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
Adding percent filter to PublisherInfoFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanml committed Dec 6, 2018
1 parent 7bd43e1 commit 03fe3bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/bat/ledger/publisher_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ LEDGER_EXPORT enum PUBLISHER_EXCLUDE_FILTER {
FILTER_ALL_EXCEPT_EXCLUDED = 3
};

LEDGER_EXPORT enum PUBLISHER_PERCENT_FILTER {
FILTER_ZERO = 0
};

LEDGER_EXPORT struct PublisherInfoFilter {
PublisherInfoFilter();
PublisherInfoFilter(const PublisherInfoFilter& filter);
Expand All @@ -62,6 +66,7 @@ LEDGER_EXPORT struct PublisherInfoFilter {
PUBLISHER_MONTH month;
int year;
PUBLISHER_EXCLUDE_FILTER excluded;
PUBLISHER_PERCENT_FILTER percent;
std::vector<std::pair<std::string, bool>> order_by;
unsigned int min_duration;
uint64_t reconcile_stamp;
Expand Down
1 change: 1 addition & 0 deletions src/bat/ledger/ledger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ PublisherInfoFilter::PublisherInfoFilter(const PublisherInfoFilter& filter) :
month(filter.month),
year(filter.year),
excluded(filter.excluded),
percent(filter.percent),
order_by(filter.order_by),
min_duration(filter.min_duration),
reconcile_stamp(filter.reconcile_stamp) {}
Expand Down

0 comments on commit 03fe3bf

Please sign in to comment.