Skip to content

Commit

Permalink
Update database URI in testdatenfiller.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonKohli committed Feb 8, 2024
1 parent 4511e34 commit fb708cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified database/ip_atlas.db
Binary file not shown.
6 changes: 3 additions & 3 deletions ip-atlas/testdatenfiller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from app import atlasapp

# Assuming your database URI is stored in a variable or directly provided
DATABASE_URI = atlasapp.config["SQLALCHEMY_DATABASE_URI"]
DATABASE_URI = "sqlite:////home/leon/Documents/GitHub/IP-Atlas/database/ip_atlas.db"
engine = create_engine(DATABASE_URI)
Session = sessionmaker(bind=engine)

Expand All @@ -31,8 +31,8 @@ def generate_test_data(num_hosts=50):
for port_number in ports_numbers:
port = Port(host_id=host.id, port_number=port_number)
session.add(port)
# Create Port instances for FB

# Create PortFB instances
for portFB_number in portsFB_numbers:
portFB = PortFB(host_id=host.id, portFB_number=portFB_number)
session.add(portFB)
Expand Down

0 comments on commit fb708cc

Please sign in to comment.