mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
fix lint
This commit is contained in:
parent
12764666e9
commit
01baa1a0bb
@ -146,7 +146,7 @@ class RemoteExifEntity extends Table with DriftDefaultsMixin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extension RemoteExifEntityDataDomainEx on RemoteExifEntityData {
|
extension RemoteExifEntityDataDomainEx on RemoteExifEntityData {
|
||||||
domain.ExifInfo toDto() => domain.ExifInfo (
|
domain.ExifInfo toDto() => domain.ExifInfo(
|
||||||
fileSize: fileSize,
|
fileSize: fileSize,
|
||||||
description: description,
|
description: description,
|
||||||
orientation: orientation,
|
orientation: orientation,
|
||||||
|
@ -57,7 +57,8 @@ class DriftRemoteAssetRepository extends DriftDatabaseRepository {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> updateDateTime(List<String> ids, String dateTime) {
|
Future<void> updateDateTime(List<String> ids, String dateTime) {
|
||||||
final localDateTime = dateTime.replaceAll(RegExp(r'[\+|-][0-9]{2}:[0-9]{2}'), '');
|
final localDateTime =
|
||||||
|
dateTime.replaceAll(RegExp(r'[\+|-][0-9]{2}:[0-9]{2}'), '');
|
||||||
return _db.batch((batch) async {
|
return _db.batch((batch) async {
|
||||||
for (final id in ids) {
|
for (final id in ids) {
|
||||||
batch.update(
|
batch.update(
|
||||||
|
@ -145,7 +145,8 @@ class ActionService {
|
|||||||
if (initialDateTime != null && initialTimeZone != null) {
|
if (initialDateTime != null && initialTimeZone != null) {
|
||||||
try {
|
try {
|
||||||
final location = getLocation(initialTimeZone);
|
final location = getLocation(initialTimeZone);
|
||||||
initialOffset = TZDateTime.from(initialDateTime, location).timeZoneOffset;
|
initialOffset =
|
||||||
|
TZDateTime.from(initialDateTime, location).timeZoneOffset;
|
||||||
} on LocationNotFoundException {
|
} on LocationNotFoundException {
|
||||||
RegExp re = RegExp(
|
RegExp re = RegExp(
|
||||||
r'^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$',
|
r'^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user