mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
add function get_last_sync
This commit is contained in:
parent
0a56019794
commit
b85d5109a1
1 changed files with 7 additions and 0 deletions
|
@ -285,6 +285,13 @@ class MPW
|
|||
raise "#{I18n.t('error.import.read', file: file)}\n#{e}"
|
||||
end
|
||||
|
||||
# Get last sync
|
||||
def get_last_sync
|
||||
return @config['sync']['last_sync'].to_i
|
||||
rescue
|
||||
return 0
|
||||
end
|
||||
|
||||
# Generate a random password
|
||||
# @args: length -> the length password
|
||||
# @rtrn: a random string
|
||||
|
|
Loading…
Add table
Reference in a new issue