MightyMaxims 3.0.0__tar.gz → 3.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,8 +14,8 @@ def get_random():
14
14
  which = random.randrange(1, nelem + 1)
15
15
  go = db.select(f'SELECT * from {db.table_name} where ID = {which} LIMIT 1;')
16
16
  q = dict(*go)
17
- print(f"\nMighty Maxims #{q['ID']}: {q['Author']}\n")
18
- for _str in textwrap.wrap(q['Quote'], width=40):
17
+ print(f"\nMighty Maxims #{q['ID']}: {q['AUTHOR']}\n")
18
+ for _str in textwrap.wrap(q['QUOTE'], width=40):
19
19
  print(_str)
20
20
  print()
21
21
  db.close()
@@ -16,19 +16,7 @@ class Maxims:
16
16
  self.db = os.path.join(pdir, 'MightyMaxims2024.sqlt3')
17
17
  self.conn = None
18
18
  self.curs = None
19
- self.bOpen = False
20
- self.fields = OrderedDict([('ID', 'integer'), ('Author', 'text'), ('Quote', 'text')])
21
- self.table_name = 'MightyMaxims'
22
-
23
- @classmethod
24
- def get_fields(cls, value):
25
- if isinstance(value, dict) and 'ID' in value.keys():
26
- value = OrderedDict(value)
27
- del value['ID']
28
- return list(value.values())
29
- if isinstance(value, cls):
30
- return cls.get_fields(value.fields)
31
- return value
19
+ self.bOpen = False
32
20
 
33
21
  def open(self):
34
22
  if self.bOpen is False:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: MightyMaxims
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: Random Short & Memorable Quotations
5
5
  Home-page: http://soft9000.com
6
6
  Download-URL: https://github.com/soft9000/DoctorQuote
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: MightyMaxims
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: Random Short & Memorable Quotations
5
5
  Home-page: http://soft9000.com
6
6
  Download-URL: https://github.com/soft9000/DoctorQuote
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "MightyMaxims"
3
- version = "3.0.0"
3
+ version = "3.0.2"
4
4
  authors = [
5
5
  { name="Randall Nagy", email="r.a.nagy@gmail.com" },
6
6
  ]
File without changes
File without changes
File without changes