ChaterJee 0.5.4__tar.gz → 0.5.5__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.
@@ -440,7 +440,7 @@ class NoteLogs:
440
440
  self.logIMAGE = None
441
441
  self.logDICT = None
442
442
 
443
- def write(self, jobNAME: str, logDIR: str = None, logSTRING: str = None, logFILE: str = 'log_file.out', logIMAGE: str = 'log_file.png', logDICT: dict = None):
443
+ def write(self, jobNAME: str, logDIR: str = None, logSTRING: str = None, logFILE: str = 'log_file.out', logIMAGE: str = 'log_file.png'):
444
444
  if logDIR is None:
445
445
  pwd = Path.cwd()
446
446
  _logDIR = pwd / jobNAME
@@ -461,10 +461,9 @@ class NoteLogs:
461
461
  self.logDIR = logDIR
462
462
  self.logFILE = logFILE
463
463
  self.logIMAGE = logIMAGE
464
- self.logDICT = logDICT
465
464
  self.save_job_JSON()
466
465
 
467
- def save_job_JSON(self):
466
+ def save_job_JSON(self, logDICT: str = None):
468
467
  _data = self.home / ".data"
469
468
  _data.mkdir(exist_ok=True)
470
469
  jobs_file = _data / "JOB_status.json"
@@ -484,8 +483,8 @@ class NoteLogs:
484
483
  jobD["logFILE"] = self.logFILE
485
484
  if self.logIMAGE is not None:
486
485
  jobD["logIMAGE"] = self.logIMAGE
487
- if self.logDICT is not None:
488
- jobD["logDICT"] = self.logDICT
486
+ if logDICT is not None:
487
+ jobD["logDICT"] = logDICT
489
488
  if len(jobD):
490
489
  jobs[self.jobNAME] = jobD
491
490
  with open(jobs_file, 'w') as ffw:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.5.4
3
+ Version: 0.5.5
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.5.4
3
+ Version: 0.5.5
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='ChaterJee',
5
- version='0.5.4',
5
+ version='0.5.5',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  'python-telegram-bot==20.7',
File without changes
File without changes