minor changes
This commit is contained in:
parent
5f98f1525d
commit
c6b7003af8
@ -7,6 +7,8 @@ app = create_app()
|
||||
|
||||
@app.cli.command()
|
||||
def drop_db():
|
||||
"""Empty database for dev environments."""
|
||||
db.engine.execute("DROP TABLE IF EXISTS alembic_version;")
|
||||
db.drop_all()
|
||||
db.session.commit()
|
||||
print('Database dropped.')
|
||||
|
@ -19,26 +19,26 @@ class DashBoard extends React.Component {
|
||||
<title>mpwo - Dashboard</title>
|
||||
</Helmet>
|
||||
<h1 className="page-title">Dashboard</h1>
|
||||
{activities.length > 0 ? (
|
||||
<div className="container">
|
||||
<div className="row">
|
||||
<div className="col-md-6">
|
||||
{activities.length > 0 ? (
|
||||
activities.map(activity => (
|
||||
{activities.map(activity => (
|
||||
<ActivityCard
|
||||
activity={activity}
|
||||
key={activity.id}
|
||||
sports={sports}
|
||||
/>
|
||||
))
|
||||
) : (
|
||||
'No activities for now'
|
||||
)}
|
||||
))}
|
||||
</div>
|
||||
<div className="col-md-6">
|
||||
<Statistics />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
'No activities for now'
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user