mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-26 01:45:44 +01:00
Change pathname generation to use the correct value for {id}
This commit is contained in:
parent
478369c7cb
commit
ed7a6180ae
1 changed files with 2 additions and 2 deletions
|
|
@ -926,8 +926,8 @@ def create_upload_path(self, path, mdata, fname, create_dirs=True):
|
|||
if not isinstance(template, unicode):
|
||||
template = template.decode('utf-8')
|
||||
app_id = str(getattr(mdata, 'application_id', ''))
|
||||
# The db id will be in the created filename
|
||||
extra_components = get_components(template, mdata, fname,
|
||||
id_ = mdata.get('id', fname)
|
||||
extra_components = get_components(template, mdata, id_,
|
||||
timefmt=opts.send_timefmt, length=maxlen-len(app_id)-1)
|
||||
if not extra_components:
|
||||
extra_components.append(sanitize(self.filename_callback(fname,
|
||||
|
|
|
|||
Loading…
Reference in a new issue