ChaterJee 0.5.6__tar.gz → 0.5.7__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.
- {chaterjee-0.5.6 → chaterjee-0.5.7}/ChaterJee/ChaterJee.py +7 -6
- {chaterjee-0.5.6 → chaterjee-0.5.7}/ChaterJee.egg-info/PKG-INFO +1 -1
- {chaterjee-0.5.6 → chaterjee-0.5.7}/PKG-INFO +1 -1
- {chaterjee-0.5.6 → chaterjee-0.5.7}/setup.py +1 -1
- {chaterjee-0.5.6 → chaterjee-0.5.7}/ChaterJee/__init__.py +0 -0
- {chaterjee-0.5.6 → chaterjee-0.5.7}/ChaterJee.egg-info/SOURCES.txt +0 -0
- {chaterjee-0.5.6 → chaterjee-0.5.7}/ChaterJee.egg-info/dependency_links.txt +0 -0
- {chaterjee-0.5.6 → chaterjee-0.5.7}/ChaterJee.egg-info/requires.txt +0 -0
- {chaterjee-0.5.6 → chaterjee-0.5.7}/ChaterJee.egg-info/top_level.txt +0 -0
- {chaterjee-0.5.6 → chaterjee-0.5.7}/README.md +0 -0
- {chaterjee-0.5.6 → chaterjee-0.5.7}/setup.cfg +0 -0
@@ -147,7 +147,7 @@ class ChatLogs:
|
|
147
147
|
#msg = await context.bot.send_message(chat_id=self.CHATID, text=txt)
|
148
148
|
#self.smsID.append(msg.message_id)
|
149
149
|
elif logDICT is not None:
|
150
|
-
self.txt = self.txt + '\n'
|
150
|
+
self.txt = self.txt + '\n\n'
|
151
151
|
for key, value in logDICT.items():
|
152
152
|
self.txt = self.txt + f"{key}: {value}\n"
|
153
153
|
|
@@ -435,18 +435,18 @@ class ChatLogs:
|
|
435
435
|
|
436
436
|
|
437
437
|
class NoteLogs:
|
438
|
-
def __init__(self):
|
438
|
+
def __init__(self, jobNAME: str):
|
439
439
|
self.home = Path.home()
|
440
|
-
self.jobNAME =
|
440
|
+
self.jobNAME = jobNAME
|
441
441
|
self.logDIR = None
|
442
442
|
self.logFILE = None
|
443
443
|
self.logIMAGE = None
|
444
444
|
self.logDICT = None
|
445
445
|
|
446
|
-
def write(self,
|
446
|
+
def write(self, logDIR: str = None, logSTRING: str = None, logFILE: str = 'log_file.out', logIMAGE: str = 'log_file.png'):
|
447
447
|
if logDIR is None:
|
448
448
|
pwd = Path.cwd()
|
449
|
-
_logDIR = pwd / jobNAME
|
449
|
+
_logDIR = pwd / self.jobNAME
|
450
450
|
_logDIR.mkdir(exist_ok=True)
|
451
451
|
else:
|
452
452
|
_logDIR = Path(logDIR)
|
@@ -460,13 +460,14 @@ class NoteLogs:
|
|
460
460
|
|
461
461
|
logDIR = str(_logDIR)
|
462
462
|
|
463
|
-
self.jobNAME = f"JOB: {jobNAME}"
|
463
|
+
#self.jobNAME = f"JOB: {jobNAME}"
|
464
464
|
self.logDIR = logDIR
|
465
465
|
self.logFILE = logFILE
|
466
466
|
self.logIMAGE = logIMAGE
|
467
467
|
self.save_job_JSON()
|
468
468
|
|
469
469
|
def save_job_JSON(self, logDICT: str = None):
|
470
|
+
self.jobNAME = f"JOB: {self.jobNAME}"
|
470
471
|
_data = self.home / ".data"
|
471
472
|
_data.mkdir(exist_ok=True)
|
472
473
|
jobs_file = _data / "JOB_status.json"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|