File tree 1 file changed +1
-36
lines changed
1 file changed +1
-36
lines changed Original file line number Diff line number Diff line change 7
7
8
8
Created this file because the queries are repeated over the URI's.
9
9
"""
10
- from api .utility import (fix_date ,
11
- fix_limit ,
12
- fix_skip )
10
+ from api .utility import fix_date
13
11
14
12
sort_by_count = {
15
13
"$sort" : (
@@ -88,24 +86,6 @@ def filter_by_fields(query, fields):
88
86
}
89
87
90
88
91
- def filter_by_skip (skip ):
92
- return {
93
- "$skip" : fix_skip (skip )
94
- }
95
-
96
-
97
- def filter_by_limit (limit ):
98
- return {
99
- "$limit" : fix_limit (limit )
100
- }
101
-
102
-
103
- def filter_by_country_ip_dest (country ):
104
- return {
105
- "country_ip_dest" : country
106
- }
107
-
108
-
109
89
def filter_by_module_name (module_name ):
110
90
return {
111
91
"match" : {
@@ -114,21 +94,6 @@ def filter_by_module_name(module_name):
114
94
}
115
95
116
96
117
- # todo: not used?
118
- def filter_by_exclude_unknown_country ():
119
- return {
120
- "country_ip_dest" : {
121
- "$gt" : "-"
122
- }
123
- }
124
-
125
-
126
- def filter_by_match (match_query ):
127
- return {
128
- "$match" : match_query
129
- }
130
-
131
-
132
97
def filter_by_regex (field , regex ):
133
98
return {
134
99
"regexp" : {
You can’t perform that action at this time.
0 commit comments