Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gds table has zero rows #5

Open
adammaikai opened this issue Nov 14, 2023 · 0 comments
Open

gds table has zero rows #5

adammaikai opened this issue Nov 14, 2023 · 0 comments

Comments

@adammaikai
Copy link

After switching from the demo file to the full db, my code stopped working due to an empty gds table.

table_name = 'gds'
query = f"SELECT COUNT(*) FROM {table_name}"
conn = sqlite3.connect('GEOmetadb.sqlite')
cur = conn.cursor()
cur.execute(query)
result = cur.fetchone()
row_count = result[0]
print(row_count)
0

conn = sqlite3.connect('GEOmetadb_demo.sqlite')
cur = conn.cursor()
cur.execute(query)
result = cur.fetchone()
row_count = result[0]
print(row_count)
3566
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant