localpdb/plugins/PluginVersioneer.py
def update_logs(self, version, additional_info = None):
        """
        Updates the version log for the plugin with the OK status, time and optional additional data
        :param version: localpdb version
        :param additional_info: list of values with additional info, default = None
        :return: 0 if everything went fine
        """
        status = ['OK', datetime.datetime.now().strftime("%Y-%m-%d %H:%M")]
        try:
            json.dumps(additional_info)
            status.append(additional_info)
        except TypeError:
            pass # Unable to dump additional info to JSON format
        self.logs[version] = status
        try:
            with open(self.logs_fn, 'w') as f:
                f.write(json.dumps(self.logs, indent=4))
        except PermissionError:
            return 1
        return 0

        Updates the version log for the plugin with the OK status, time and optional additional data
        :param version: localpdb version
        :param additional_info: list of values with additional info, default = None
        :return: 0 if everything went fine
        
Updates the version log for the plugin with the OK status, time and optional additional data
Updates the version log for the plugin with the OK status time and optional additional data
def update_logs(self, version, additional_info = None):
        status = ['OK', datetime.datetime.now().strftime("%Y-%m-%d %H:%M")]
        try:
            json.dumps(additional_info)
            status.append(additional_info)
        except TypeError:
            pass 
        self.logs[version] = status
        try:
            with open(self.logs_fn, 'w') as f:
                f.write(json.dumps(self.logs, indent=4))
        except PermissionError:
            return 1
        return 0
def update_logs ( self , version , additional_info = None ) : status = [ 'OK' , datetime . datetime . now ( ) . strftime ( "%Y-%m-%d %H:%M" ) ] try : json . dumps ( additional_info ) status . append ( additional_info ) except TypeError : pass self . logs [ version ] = status try : with open ( self . logs_fn , 'w' ) as f : f . write ( json . dumps ( self . logs , indent = 4 ) ) except PermissionError : return 1 return 0
Updates the version log for the plugin with the OK status, time and optional additional data
Updates the version log for the plugin with the OK status time and optional additional data
"""
        Updates the version log for the plugin with the OK status, time and optional additional data
        :param version: localpdb version
        :param additional_info: list of values with additional info, default = None
        :return: 0 if everything went fine
        """ # Unable to dump additional info to JSON format
0 if everything went fine
0 if everything went fine
self
version
None
additional_info
list of values with additional info, default = None
list of values with additional info default = None