create account

Adding a new date to the attendance history by dobro2020

View this thread on: hive.blogpeakd.comecency.com
· @dobro2020 ·
$1.43
Adding a new date to the attendance history
In this application that I am developing for a friend, one of the main features is to be able to add the attendance of each of his students to the database.
The main thing in the database is always to have a good structure to be able to facilitate this type of processes. And in this case, within the table that manages the dates, there is a row that is responsible for saving the history of each student.

![asistencia3.jpg](https://files.peakd.com/file/peakd-hive/dobro2020/2432eojT9hkG4xdn6Sc5Qh95XZM5hH2evxGcXwK6bqobnb3x6VitE3fN7NjBxv4zWqqR4.jpg)
It is only mentioned to save the date that the student attended only so that I use a matrix to which I insert new data. And so my friend can keep a record without any problem of each student who attends his classes.

![asistencia2.jpg](https://files.peakd.com/file/peakd-hive/dobro2020/2432f26znSF5F4a7ztb41o7ECoWv5hR9CmacAETeHxC4gM7XeZhbbLrbYjNhPkAAgkhdN.jpg)

![asistencia1.jpg](https://files.peakd.com/file/peakd-hive/dobro2020/242sGWwZTSk2xhCaJgMW4KUey7Ak4mhz39aPi8Fned3ivjM2Yfha3stSVu97T9as8XxSk.jpg)
It must be taken into account that the database is made in Firebase and to insert new data into that existing array what I must do is first clone it and add the new data to that copy in the computer's memory and then replace it with the previously existing one. It sounds a bit confusing and far-fetched but it is functional from the application side.

![asistencia.jpg](https://files.peakd.com/file/peakd-hive/dobro2020/23wCZMjXS6dSuk8SWAtXNZWrQg423ziwPZGpRUCEPaaCJnXUAoQXnzQtrYxmACPFeYq7q.jpg)
The incredible thing is that all these changes are made in real time and therefore my friend will be able to see in his database that the new date has been assigned correctly and when refreshing the list of students he will also be able to see the dates added to each particular student.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 186 others
properties (23)
authordobro2020
permlinkadding-a-new-date-to-the-attendance-history
categoryhive-196387
json_metadata{"app":"peakd/2025.5.9","format":"markdown","tags":["stemng","stemsocial","stem","coding","stemgeeks","ocd"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/dobro2020/2432eojT9hkG4xdn6Sc5Qh95XZM5hH2evxGcXwK6bqobnb3x6VitE3fN7NjBxv4zWqqR4.jpg","https://files.peakd.com/file/peakd-hive/dobro2020/2432f26znSF5F4a7ztb41o7ECoWv5hR9CmacAETeHxC4gM7XeZhbbLrbYjNhPkAAgkhdN.jpg","https://files.peakd.com/file/peakd-hive/dobro2020/242sGWwZTSk2xhCaJgMW4KUey7Ak4mhz39aPi8Fned3ivjM2Yfha3stSVu97T9as8XxSk.jpg","https://files.peakd.com/file/peakd-hive/dobro2020/23wCZMjXS6dSuk8SWAtXNZWrQg423ziwPZGpRUCEPaaCJnXUAoQXnzQtrYxmACPFeYq7q.jpg"]}
created2025-06-04 16:04:42
last_update2025-06-04 16:04:42
depth0
children1
last_payout2025-06-11 16:04:42
cashout_time1969-12-31 23:59:59
total_payout_value0.732 HBD
curator_payout_value0.701 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,840
author_reputation65,274,772,036,162
root_title"Adding a new date to the attendance history"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id143,162,141
net_rshares4,420,072,977,068
author_curate_reward""
vote details (250)
@stemsocial ·
re-dobro2020-adding-a-new-date-to-the-attendance-history-20250605t014746676z
<div class='text-justify'> <div class='pull-left'>
 <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div>

Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive.&nbsp;<br />&nbsp;<br />
</div>
properties (22)
authorstemsocial
permlinkre-dobro2020-adding-a-new-date-to-the-attendance-history-20250605t014746676z
categoryhive-196387
json_metadata{"app":"STEMsocial"}
created2025-06-05 01:47:45
last_update2025-06-05 01:47:45
depth1
children0
last_payout2025-06-12 01:47:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length646
author_reputation22,902,576,664,278
root_title"Adding a new date to the attendance history"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,171,160
net_rshares0