From 2ac5c685871a33a9d98ad71c4dc7ef5ca0e99ca1 Mon Sep 17 00:00:00 2001 From: QualCoder Developer Date: Tue, 9 May 2023 09:58:09 +1000 Subject: [PATCH] fixed refi project export (missing sources) --- qualcoder/refi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qualcoder/refi.py b/qualcoder/refi.py index c68ae864d..0bae24a15 100644 --- a/qualcoder/refi.py +++ b/qualcoder/refi.py @@ -2448,8 +2448,8 @@ def sources_xml(self): for s in self.sources: guid = self.create_guid() # Text document - if (s['mediapath'] is None and (s['name'][-4:].lower() != '.pdf' and s['name'][-12:] != '.transcribed')) or \ - (s['mediapath'] is not None and s['mediapath'][0:5] == 'docs:' and ( + if ((s['mediapath'] is None) and (s['name'][-4:].lower() != '.pdf' and s['name'][-12:] != '.transcribed')) or \ + (s['mediapath'] is not None and s['mediapath'][0:6] == '/docs/' and ( s['name'][-4:].lower() != '.pdf' or s['name'][-12:] != '.transcribed')): xml += '