title: result is stored for presentee and does not shows absent and for the next day it overwrites the already stored values
body: <pre><code>def attendance(self, i, n, d, g):
      with open(&quot;attendance.csv&quot;, &quot;r+&quot;, newline=&quot;\n&quot;) as f:
          dataList = f.readlines()
          name_list = []
          for line in dataList:
              entry = line.split((&quot;,&quot;))
              name_list.append(entry[0])
          if((i not in name_list) and (n not in name_list) and (d not in name_list) and (g not in name_list)):
              now = datetime.now()
              d1 = now.strftime(&quot;%d/%m/%Y&quot;)
              dates = now.strftime(&quot;%H:%M:%S&quot;)
              f.writelines(f&quot;\n{i},{n},{d},{g},{dates},{d1},Present&quot;)
  #tracking attendance through face recognition and storing the values in a csv file...
  </code></pre>
  <p>This is the original data set
  <a href="https://i.stack.imgur.com/c6Ra5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c6Ra5.png" alt="THIS IS THE ORIGINAL DATA SET" /></a></p>
  <p>This is the data generated through face recognition
  <a href="https://i.stack.imgur.com/CCP6R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CCP6R.png" alt="THIS IS THE DATA GENERATED THROUGH FACE RECOGNITION" /></a></p>
  <p>The problem is that it took these two employees attendance and for the next day it is not getting recorded.</p>
  <p>This is the expected output
  <a href="https://i.stack.imgur.com/LguHL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LguHL.png" alt="This is the expected output" /></a></p>