...
 
Commits (3)
IMAGE_TAG=0.23-beta
IMAGE_TAG=0.24-beta
......@@ -129,6 +129,7 @@ class Star(Base):
if star_name.name not in self.existing_names:
self.existing_names.append(star_name.name)
print("search sesame with name '%s' of type %s " % (name, type(name)) )
url_encoded_name = urllib.parse.quote(name)
url = 'http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/-oI?%s'%(url_encoded_name)
execute_http_request(url, self.update_names_success_func)
......
......@@ -46,7 +46,7 @@
</tr>
<tr>
<td>&nbsp;</td>
<td colspan="13"><input type="text" name="comment[{{entry.star_info.id or '' }}]" value="{% if entry.comment %}{{entry.comment or '' }}{% endif %}"></input></td>
<td colspan="14"><input type="text" name="comment[{{entry.star_info.id or '' }}]" value="{% if entry.comment %}{{entry.comment or '' }}{% endif %}"></input></td>
</tr>
{% endfor %}
</tbody>
......
......@@ -103,8 +103,10 @@ class ImportProcess(threading.Thread):
print("Header: '%s'"%(self.sub.headers))
print("Data : '%s'"%(entry.line_data))
print("------> inner session not saved")
i_session.rollback()
else:
print("INNER SESSION COMMITTED")
i_session.close()
print('end of processing')
self.sub.processed = True
session.commit()
......