Skip to content

Commit 4f6e59b

Browse files
we dont need the django unique id
1 parent 1c96c03 commit 4f6e59b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

psql/consumers/ASHegemony_prefix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, topic, af, start, end, host="localhost", dbname="ihr"):
4444
# conn_string = "host='127.0.0.1' dbname='%s'" % dbname
4545

4646
self.conn = psycopg2.connect(DB_CONNECTION_STRING)
47-
columns=("timebin", "prefix", "originasn_id", "asn_id", "country_id", "hege", "rpki_status", "irr_status", "delegated_prefix_status", "delegated_asn_status", "af", "descr", "visibility", "moas")
47+
columns=("id", "timebin", "prefix", "originasn_id", "asn_id", "country_id", "hege", "rpki_status", "irr_status", "delegated_prefix_status", "delegated_asn_status", "af", "descr", "visibility", "moas")
4848
self.cpmgr = CopyManager(self.conn, "ihr_hegemony_prefix", columns)
4949
self.cursor = self.conn.cursor()
5050
logging.debug("Connected to the PostgreSQL server")
@@ -235,7 +235,7 @@ def save(self, msg):
235235

236236
# Hegemony values to copy in the database
237237
if hege!= 0:
238-
#("timebin", "prefix", "originasn_id", "asn_id", "country_id", "hege",
238+
#("id", "timebin", "prefix", "originasn_id", "asn_id", "country_id", "hege",
239239
# "rpki_status", "irr_status", "delegated_prefix_status", "delegated_asn_status",
240240
# "af", "descr", "visibility", "moas")
241241

@@ -279,7 +279,7 @@ def save(self, msg):
279279
self.cache['descr'] = descr
280280

281281
self.dataHege.append([
282-
self.currenttime, prefix, int(originasn), int(asn), cc, float(hege),
282+
0, self.currenttime, prefix, int(originasn), int(asn), cc, float(hege),
283283
rov_check['rpki']['status'], rov_check['irr']['status'],
284284
rov_check['delegated']['prefix']['status'], rov_check['delegated']['asn']['status'],
285285
self.af, descr, msg['nb_peers']

0 commit comments

Comments
 (0)