Skip to content

Commit

Permalink
fix FLAT viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Oct 30, 2019
1 parent c203307 commit 2f7f69d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clam/clamdispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import signal
import shutil

VERSION = '3.0.4'
VERSION = '3.0.5'

sys.path.append(sys.path[0] + '/..')

Expand Down
2 changes: 1 addition & 1 deletion clam/common/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import clam.common.util
import clam.common.viewers

VERSION = '3.0.4'
VERSION = '3.0.5'

#dirs for services shipped with CLAM itself
CONFIGDIR = os.path.abspath(os.path.dirname(__file__) + '/../config/')
Expand Down
2 changes: 1 addition & 1 deletion clam/common/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __init__(self, **kwargs):

def view(self, file, **kwargs):
#filename will contain a random component to prevent clashes
if hasattr(file, filename):
if hasattr(file, "filename"):
filename = os.path.basename(file.filename).replace('.folia.xml','').replace('.xml','') + str("%034x" % random.getrandbits(128)) + '.folia.xml'
else:
filename = "input-" + str("%x" % random.getrandbits(128)) + '.folia.xml'
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@type": "SoftwareSourceCode",
"identifier": "clam",
"name": "CLAM",
"version": "3.0.4",
"version": "3.0.5",
"description": "Quickly turn command-line applications into RESTful webservices with a web-application front-end. You provide a specification of your command line application, its input, output and parameters, and CLAM wraps around your application to form a fully fledged RESTful webservice. ",
"license": "https://spdx.org/licenses/GPL-3.0",
"url": "https://proycon.github.io/clam",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read(fname):

setup(
name = "CLAM",
version = "3.0.4", #also change in clam.common.data.VERSION and dispatcher.py and codemeta.json
version = "3.0.5", #also change in clam.common.data.VERSION and dispatcher.py and codemeta.json
author = "Maarten van Gompel",
author_email = "proycon@anaproy.nl",
description = ("Turns command-line NLP tools into fully-fledged RESTful webservices with an auto-generated web-interface for human end-users."),
Expand Down

0 comments on commit 2f7f69d

Please sign in to comment.