Change unchanged file detection to digest based.

mtime is updated when a file is modified or created
ctime is updated when a file is modified, created, or
(commonly) ownership/permissions are changed.
If the expectation is that the skel file creates this
and then the file is updated to have the ring code,
this method won't discover that.  Usually, you'll want
to compare it to the skel file using either md5 or diff.
More likely, you'll want to keep each version of the
skel file in a digest in this file as an unedited list
so that any time it changes, you'll be able to not only
continue to see that older ones haven't been edited
still but also what version of non-editness they are.

This commit does that (untested thus far since I'm editing in github directly but it should work).
Ah yes.  That is quite glaring, is it not?

On Mon, Dec 8, 2014 at 12:13 AM, eataudio <notifications@github.com> wrote:

> In users.py:
>
> > @@ -39,13 +43,13 @@ def get_users():
> >                      modtime     = time.ctime(os.path.getmtime(index))
> >
> >                      # determines whether the file has been edited
> > -                    # ( I would think that the then ... else branches
> > -                    #   should be switched, but that gives an inverted
> > -                    #   result. WTF? ) - um
> > -                    if modtime == createdtime:
> > -                        edited = 1 # will be read as "false" by javascript
> > +                    hash = hashlib.new('sha256')
> > +                    with open(index) as f:
> > +                    hash.update(f.read())
>
> Ah that's a thorough explaination! Thanks! All sounds resonable. Just
> spotted a slight indent problem here though.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/eataudio/tilde.town.webring/pull/2/files#r21439246>.
>