Skip to content

Commit

Permalink
some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastGimbus authored Jan 29, 2025
1 parent 26823fc commit 49ea752
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/date_extractors/json_extractor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ Future<File?> _jsonForFile(File file, {required bool tryhard}) async {
return null;
}

// if the original file was uploaded without an extension there will be no
// extension in the "title" of the json but the image in the filesystem will
// have one that was automatically added, hence we need to ignore it when
// searching for the json
// if the originally file was uploaded without an extension,
// (for example, "20030616" (jpg but without ext))
// it's json won't have the extension ("20030616.json"), but the image
// itself (after google proccessed it) - will ("20030616.jpg" tadam)
String _noExtension(String filename) =>
p.basenameWithoutExtension(File(filename).path);

Expand Down

0 comments on commit 49ea752

Please sign in to comment.