@@ -112,9 +112,9 @@ def on_api_get(self, request):
112112 if octoprint .access .permissions .Permissions .FILES_LIST .can ():
113113 # only return the check result if the user has permissions
114114 # to see a file list, otherwise we might leak data
115- response [
116- "check_result"
117- ] = self . _gather_from_local_metadata ( ) # TODO: caching?
115+ response ["check_result" ] = (
116+ self . _gather_from_local_metadata ()
117+ ) # TODO: caching?
118118
119119 return flask .jsonify (** response )
120120
@@ -183,31 +183,31 @@ def get_additional_permissions(self):
183183 ##~~ SoftwareUpdate hook
184184
185185 def get_update_information (self ):
186- return dict (
187- file_check = dict (
188- displayName = "File Check Plugin" ,
189- displayVersion = self ._plugin_version ,
186+ return {
187+ " file_check" : {
188+ " displayName" : "File Check Plugin" ,
189+ " displayVersion" : self ._plugin_version ,
190190 # version check: github repository
191- type = "github_release" ,
192- user = "OctoPrint" ,
193- repo = "OctoPrint-FileCheck" ,
194- current = self ._plugin_version ,
195- stable_branch = {
191+ " type" : "github_release" ,
192+ " user" : "OctoPrint" ,
193+ " repo" : "OctoPrint-FileCheck" ,
194+ " current" : self ._plugin_version ,
195+ " stable_branch" : {
196196 "name" : "Stable" ,
197197 "branch" : "master" ,
198198 "commitish" : ["devel" , "master" ],
199199 },
200- prerelease_branches = [
200+ " prerelease_branches" : [
201201 {
202202 "name" : "Prerelease" ,
203203 "branch" : "devel" ,
204204 "commitish" : ["devel" , "master" ],
205205 }
206206 ],
207207 # update method: pip
208- pip = "https://github.com/OctoPrint/OctoPrint-FileCheck/archive/{target_version}.zip" ,
209- )
210- )
208+ " pip" : "https://github.com/OctoPrint/OctoPrint-FileCheck/archive/{target_version}.zip" ,
209+ }
210+ }
211211
212212 ##~~ Internal logic & helpers
213213
0 commit comments