15
15
class Proxy (peewee .Model ):
16
16
class Meta :
17
17
database = raw_db
18
- raw_db_table = 'proxies'
18
+ db_table = 'proxies'
19
19
indexes = (
20
20
(('raw_protocol' , 'auth_data' , 'domain' , 'port' ), True ),
21
21
(('auth_data' , 'domain' , 'port' ), False ), # important!
@@ -114,7 +114,7 @@ def __str__(self):
114
114
class ProxyCountItem (peewee .Model ):
115
115
class Meta :
116
116
database = raw_db
117
- raw_db_table = 'proxy_count_items'
117
+ db_table = 'proxy_count_items'
118
118
119
119
timestamp = peewee .IntegerField (primary_key = True )
120
120
good_proxies_count = peewee .IntegerField (null = False )
@@ -125,7 +125,7 @@ class Meta:
125
125
class CollectorState (peewee .Model ):
126
126
class Meta :
127
127
database = raw_db
128
- raw_db_table = 'collector_states'
128
+ db_table = 'collector_states'
129
129
indexes = (
130
130
(('processing_period' ,), False ),
131
131
(('last_processing_time' ,), False ),
@@ -150,7 +150,7 @@ class Meta:
150
150
151
151
class NumberOfProxiesToProcess (StatBaseModel ):
152
152
class Meta :
153
- raw_db_table = 'number_of_proxies_to_process'
153
+ db_table = 'number_of_proxies_to_process'
154
154
155
155
good_proxies = peewee .IntegerField (null = False )
156
156
bad_proxies = peewee .IntegerField (null = False )
@@ -159,14 +159,14 @@ class Meta:
159
159
160
160
class NumberOfCollectorsToProcess (StatBaseModel ):
161
161
class Meta :
162
- raw_db_table = 'number_of_collectors_to_process'
162
+ db_table = 'number_of_collectors_to_process'
163
163
164
164
value = peewee .IntegerField (null = False )
165
165
166
166
167
167
class ProcessorProxiesQueueSize (StatBaseModel ):
168
168
class Meta :
169
- raw_db_table = 'processor_proxies_queue_size'
169
+ db_table = 'processor_proxies_queue_size'
170
170
171
171
value = peewee .IntegerField (null = False )
172
172
0 commit comments