Skip to content

Commit 65df8cd

Browse files
fix comments
1 parent e200ca0 commit 65df8cd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

datajoint/schemas.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,20 +367,18 @@ def replace(s):
367367
for k, v in module_lookup.items()), body))
368368
if python_filename is None:
369369
return python_code
370-
else:
371-
with open(python_filename, 'wt') as f:
372-
f.write(python_code)
370+
with open(python_filename, 'wt') as f:
371+
f.write(python_code)
373372

374373
def list_tables(self):
375374
"""
376375
Return a list of all tables in the schema except tables with ~ in first character such
377376
as ~logs and ~job
378-
:return: A list of table names in their raw datajoint naming convection form
377+
:return: A list of table names from the database schema.
379378
"""
380-
381379
return [table_name for (table_name,) in self.connection.query("""
382380
SELECT table_name FROM information_schema.tables
383-
WHERE table_schema = %s and table_name NOT LIKE '~%%'""", args=(self.database))]
381+
WHERE table_schema = %s and table_name NOT LIKE '~%%'""", args=(self.database,))]
384382

385383

386384
class VirtualModule(types.ModuleType):

0 commit comments

Comments
 (0)