Skip to content

Commit

Permalink
fix octoprint 1.4.1rc* compat
Browse files Browse the repository at this point in the history
I took this changes from fabianonline#270
  • Loading branch information
szobov committed Jul 28, 2020
1 parent 8acc6cc commit e82f72e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions octoprint_telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from subprocess import Popen, PIPE
import threading, requests, re, time, datetime, io, json, random, logging, traceback, io, collections, os, flask,base64,PIL, pkg_resources,subprocess,zipfile,glob #,resource
import octoprint.plugin, octoprint.util, octoprint.filemanager
from flask.ext.babel import gettext
from flask.ext.login import current_user
from flask_babel import gettext
from flask_login import current_user
from .telegramCommands import TCMD # telegramCommands.
from .telegramNotifications import TMSG # telegramNotifications
from .telegramNotifications import telegramMsgDict # dict of known notification messages
Expand Down
2 changes: 1 addition & 1 deletion octoprint_telegram/telegramCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging, sarge, hashlib, datetime, time, operator, socket
import octoprint.filemanager
import requests
from flask.ext.babel import gettext
from flask_babel import gettext
from .telegramNotifications import telegramMsgDict

################################################################################################################
Expand Down
2 changes: 1 addition & 1 deletion octoprint_telegram/telegramNotifications.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import time, datetime, logging
import octoprint.util
from flask.ext.babel import gettext
from flask_babel import gettext

###################################################################################################
# Here you find the known notification messages and their handles.
Expand Down

0 comments on commit e82f72e

Please sign in to comment.