Skip to content

Commit

Permalink
[processing] fixed table export
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Oct 19, 2014
1 parent c3914f0 commit 4ff831f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/tools/dataobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def exportTable(table):

settings = QSettings()
systemEncoding = settings.value('/UI/encoding', 'System')
output = getTempFilename('dbf')
output = getTempFilename()
provider = table.dataProvider()
isASCII = True
try:
Expand All @@ -367,7 +367,7 @@ def exportTable(table):
for feat in table.getFeatures():
writer.addFeature(feat)
del writer
return output
return output + '.dbf'
else:
filename = unicode(table.source())
if unicode(table.source()).endswith('shp'):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def setTempOutput(out, alg):
out.value = getTempFilenameInTempFolder(out.name + '.' + ext)


def getTempFilename(ext):
def getTempFilename(ext = None):
path = tempFolder()
if ext is None:
filename = path + os.sep + str(time.time()) \
Expand Down

0 comments on commit 4ff831f

Please sign in to comment.