ChaterJee 0.5.7__tar.gz → 0.5.8__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.
@@ -111,9 +111,9 @@ class ChatLogs:
111
111
  jobs_file = self.home / ".data" / "JOB_status.json"
112
112
  with open(jobs_file, 'r') as ffr:
113
113
  jobs = json.load(ffr)
114
- self.jobs = jobs
114
+ #self.jobs = jobs
115
+ reply_keyboard = [[f'JOB: {job}'] for job in list(jobs.keys())][::-1] # inverse to show latest jobs on top
115
116
 
116
- reply_keyboard = [[f'{job}'] for job in list(self.jobs.keys())[::-1]] # inverse to show latest jobs on top
117
117
  await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
118
118
  msg = await update.message.reply_text("Select a job to get updates on",\
119
119
  reply_markup=ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True, resize_keyboard=True, input_field_placeholder="Select the job."\
@@ -124,12 +124,12 @@ class ChatLogs:
124
124
 
125
125
  async def StatJobs(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
126
126
  self.smsID.append(update.message.message_id)
127
- job_name = update.message.text
127
+ job_name = update.message.text[5:]
128
128
 
129
129
  jobs_file = self.home / ".data" / "JOB_status.json"
130
130
  with open(jobs_file, 'r') as ffr:
131
131
  jobs = json.load(ffr)
132
- self.jobs = jobs
132
+ #self.jobs = jobs
133
133
 
134
134
  logDIR = Path(jobs[job_name]['logDIR'])
135
135
  logFILE = jobs[job_name]['logFILE']
@@ -467,7 +467,6 @@ class NoteLogs:
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}"
471
470
  _data = self.home / ".data"
472
471
  _data.mkdir(exist_ok=True)
473
472
  jobs_file = _data / "JOB_status.json"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.5.7
3
+ Version: 0.5.8
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.7
3
+ Version: 0.5.8
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.7',
5
+ version='0.5.8',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  'python-telegram-bot==20.7',
File without changes
File without changes