Reduce number of author entries in project to one

This commit is contained in:
Veronica Berglyd Olsen
2022-11-27 16:55:54 +01:00
parent 1678cd5e96
commit e5f04e5234
13 changed files with 45 additions and 91 deletions
-16
View File
@@ -565,22 +565,6 @@ class NWProject(QObject):
return self._lockedBy
return None
def getFormattedAuthors(self):
"""Return a formatted string of authors.
"""
authors = self._data.authors
nAuth = len(authors)
result = ""
if nAuth == 1:
result = authors[0]
elif nAuth > 1:
result = "%s %s %s" % (
", ".join(authors[0:-1]), self.tr("and"), authors[-1]
)
return result
def getCurrentEditTime(self):
"""Get the total project edit time, including the time spent in
the current session.