Skip to content

Commit

Permalink
Tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall Nagy committed May 24, 2024
1 parent c4013ee commit 1911d86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SqltDAO/CodeGen01/Meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class Meta:
PRODUCT = "PyDAO 9000"
VERSION = '1.2.4'
VERSION = '1.2.5'

@staticmethod
def Title():
Expand Down
4 changes: 3 additions & 1 deletion SqltDAO/CodeGen01/SqlSyntax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Author: Soft9000.com
# 2018/03/08: Class Created
# 2021/02/18: Adding DAO / Dict I/O usages.
# 2024/05/24: Pythonic.

import os
import sys
Expand Down Expand Up @@ -266,6 +267,7 @@ def _inject_import_csv(self):

def _inject_import(self):
result = ''
result += self.level.print("# Table creation & open DAO.")
result += self.level.print("try:")
self.level.inc()
result += self.level.print('# dao.open()')
Expand All @@ -276,7 +278,7 @@ def _inject_import(self):
self.level.inc()
result += self.level.print("line = fh.readline().strip()")
self.level.dec()
result += self.level.print("while len(line) != 0:")
result += self.level.print("while line:")
self.level.inc()
result += self.level.print("if dao.insert(line.split(sep)) is False:")
self.level.inc()
Expand Down

0 comments on commit 1911d86

Please sign in to comment.