Switch save default from mock to live.

This commit is contained in:
Edward Betts 2021-08-05 08:43:15 +02:00
parent 6c46c3713a
commit c47590dd65
3 changed files with 5 additions and 3 deletions

View File

@ -298,9 +298,10 @@
<div class="h3 card-title">Link Wikidata and OpenStreetMap</div> <div class="h3 card-title">Link Wikidata and OpenStreetMap</div>
<div class="alert alert-danger"> <div class="alert alert-danger">
<i class="fa fa-exclamation-triangle"></i> <i class="fa fa-exclamation-triangle"></i>
<!-- This software is beta, it works but is incomplete.<br/><a href="/documentation">See what's broken</a>. --> This software is beta, it works but is incomplete. <a href="/documentation">See what's broken</a>.
This software is unfinished. Only mock editing happens, nothing is uploaded to the OpenStreetMap database yet. <a href="/documentation" class="alert-link">See what's broken</a> <!-- This software is unfinished. Only mock editing happens, nothing is uploaded to the OpenStreetMap database yet. <a href="/documentation" class="alert-link">See what's broken</a> -->
</div> </div>
<p class="card-text">This tool will help you link Wikidata items with the matching object on OpenStreetMap (OSM).</p> <p class="card-text">This tool will help you link Wikidata items with the matching object on OpenStreetMap (OSM).</p>
<p v-if="!username" class="card-text">To save changes you need to <a href="/login">login via OpenStreetMap</a>.</p> <p v-if="!username" class="card-text">To save changes you need to <a href="/login">login via OpenStreetMap</a>.</p>

View File

@ -334,7 +334,7 @@ class User(Base, UserMixin):
multi = Column(String) multi = Column(String)
units = Column(String) units = Column(String)
wikipedia_tag = Column(Boolean, default=False) wikipedia_tag = Column(Boolean, default=False)
mock_upload = Column(Boolean, default=True) mock_upload = Column(Boolean, default=False)
osm_id = Column(Integer, index=True) osm_id = Column(Integer, index=True)
osm_account_created = Column(DateTime) osm_account_created = Column(DateTime)

View File

@ -558,6 +558,7 @@ def oauth_callback():
img=info['img'], img=info['img'],
osm_id=info['id'], osm_id=info['id'],
osm_account_created=info['account_created'], osm_account_created=info['account_created'],
mock_upload=False,
) )
database.session.add(user) database.session.add(user)
database.session.commit() database.session.commit()