mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-18 14:49:31 +08:00
codstyle
This commit is contained in:
parent
ecd49cb1e7
commit
fd8462b008
2 changed files with 2 additions and 3 deletions
|
|
@ -28,5 +28,4 @@ class RepositoryDateTimeValue < RepositoryDateTimeValueBase
|
||||||
rescue ArgumentError
|
rescue ArgumentError
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class RepositoryTimeValue < RepositoryDateTimeValueBase
|
||||||
value
|
value
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.import_from_text(text, attributes, options = {})
|
def self.import_from_text(text, attributes, _options = {})
|
||||||
time_format = '%H:%M'
|
time_format = '%H:%M'
|
||||||
new(attributes.merge(data: DateTime.strptime(text, time_format).strftime(time_format)))
|
new(attributes.merge(data: DateTime.strptime(text, time_format).strftime(time_format)))
|
||||||
rescue ArgumentError
|
rescue ArgumentError
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue