Skip to content

Commit f0fdfea

Browse files
committed
fixed shit
1 parent fd35779 commit f0fdfea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

models.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class Proxy(peewee.Model):
1616
class Meta:
1717
database = raw_db
18-
raw_db_table = 'proxies'
18+
db_table = 'proxies'
1919
indexes = (
2020
(('raw_protocol', 'auth_data', 'domain', 'port'), True),
2121
(('auth_data', 'domain', 'port'), False), # important!
@@ -114,7 +114,7 @@ def __str__(self):
114114
class ProxyCountItem(peewee.Model):
115115
class Meta:
116116
database = raw_db
117-
raw_db_table = 'proxy_count_items'
117+
db_table = 'proxy_count_items'
118118

119119
timestamp = peewee.IntegerField(primary_key=True)
120120
good_proxies_count = peewee.IntegerField(null=False)
@@ -125,7 +125,7 @@ class Meta:
125125
class CollectorState(peewee.Model):
126126
class Meta:
127127
database = raw_db
128-
raw_db_table = 'collector_states'
128+
db_table = 'collector_states'
129129
indexes = (
130130
(('processing_period',), False),
131131
(('last_processing_time',), False),
@@ -150,7 +150,7 @@ class Meta:
150150

151151
class NumberOfProxiesToProcess(StatBaseModel):
152152
class Meta:
153-
raw_db_table = 'number_of_proxies_to_process'
153+
db_table = 'number_of_proxies_to_process'
154154

155155
good_proxies = peewee.IntegerField(null=False)
156156
bad_proxies = peewee.IntegerField(null=False)
@@ -159,14 +159,14 @@ class Meta:
159159

160160
class NumberOfCollectorsToProcess(StatBaseModel):
161161
class Meta:
162-
raw_db_table = 'number_of_collectors_to_process'
162+
db_table = 'number_of_collectors_to_process'
163163

164164
value = peewee.IntegerField(null=False)
165165

166166

167167
class ProcessorProxiesQueueSize(StatBaseModel):
168168
class Meta:
169-
raw_db_table = 'processor_proxies_queue_size'
169+
db_table = 'processor_proxies_queue_size'
170170

171171
value = peewee.IntegerField(null=False)
172172

0 commit comments

Comments
 (0)