Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: shroff/pharc
base: 7d253d1712
...
head fork: shroff/pharc
compare: 6e90b0e7be
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 14 additions and 0 deletions.
  1. +11 −0 src/database/fs.py
  2. +3 −0  src/database/photosetstorage.py
View
11 src/database/fs.py
@@ -18,6 +18,7 @@
validImageTypes = frozenset([ \
"GIF", \
"JPG", \
+ "JPEG", \
"PNG", \
"TIFF"
])
@@ -814,3 +815,13 @@ def importPhoto(self, path, photoset):
if os.path.isdir(directory):
shutil.move(path, photoset)
+ def findPhotos(self, path)
+ images = list[]
+
+ if not os.path.isdir(path):
+ return images
+ for i in os.listdir(path):
+ if i in validImageTypes:
+ images.append(i)
+
+ return images
View
3  src/database/photosetstorage.py
@@ -170,3 +170,6 @@ def editDate(self, photoset, date):
def createPhotoset(self, patient, date=datetime.date.today()):
return self.fsm.createPhotoset(patient, date)
+
+ def findPhotos(self, path):
+ return self.fsm.findPhotos(path)

No commit comments for this range

Something went wrong with that request. Please try again.